﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace ITTestingSystem.Domain.Entities
{
    /// <summary>
    /// Specifies the type of the question
    /// </summary>
    /// 
    public class QuestionType
    {
        /// <summary>
        /// Returns the unique identifier of the entity
        /// </summary>
        /// 
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// Returns the title of the questions type
        /// </summary>
        /// 
        [Required]
        public string Name { get; set; }

        /// <summary>
        /// Returns the description of the questions type
        /// </summary>
        /// 
        [Required]
        public string Description { get; set; }




        /// <summary>
        /// Returns all questions in the database with this type
        /// </summary>
        /// 
        public virtual ICollection<Question> QuestionsInType { get; set; } 
    }
}
